#CC=gcc
CC=arm-none-linux-gnueabi-gcc
AFLAGS= -c -g
LDFLAGS= -lpthread -L ./lib -lsqlite3 -I ./include
OBJS=main.o pthread_uart_transfer.o pthread_analysis.o linklist.o pthread_client_request.o get_queue_id.o pthread_buzzer.o pthread_uart_cmd.o pthread_sqlite.o pthread_camera.o buzzer_open.o buzzer_close.o

storage_mamage :$(OBJS)
	$(CC) -o $@ $^ $(LDFLAGS)
	
$(OBJS):%.o:%.c
	$(CC) $(AFLAGS) $< -o $@

.PHONY:clean
clean:
	rm *.o storage_mamage

